/*
 * @Description: 
 * @Author: zoe
 * @Date: 2024-09-02 20:25:35
 * @LastEditors: rendc
 * @LastEditTime: 2024-09-02 20:38:51
 */

import java.util.Scanner;
public class Test9_Dayfyear{
    public static void main(String[] args){
		Scanner sc = new Scanner (System.in);
		System.out.print("年：");
		int year = sc.nextInt();
		System.out.print("月：");
		int month = sc.nextInt();
		System.out.print("日：");
		int day = sc.nextInt();
		int days = day;//如果将days 初值设置为0，则可以加上case1: days += day;
		//加前面几个月的满月天数
		switch(month){
			case 12: case 10:  case 8: case 7: case 5: case 3: case 1:
				//前面11个月的总天数
				//days += 第11月的天数;
				days += 30;
			case 11: case 9: case 6: case 4:
				//前面10个月的总天数
				//days += 第10月的天数;
				days += 31;
			case 2: 
				days += 28;//二月
				if(year % 4 ==0 && year % 100 != 0 || year%400==0){
					days++;
				}}
		System.out.println(year + "年" + month + "月" + day + "日是这一年的第" + days + "天");
	}	
}

    

